
// 为了让这个例子可以运行起来，我还为它准备了一些菜单数据，和简单的路由跳转：

// menus - mock.ts
export const MENUS1 = [
    { name: '首页', type: 'link', url: '/index-page' },
    { name: '个人信息修改', type: 'link', url: '/update-info' },
    { name: '个人信息展示', type: 'link', url: '/show-info' },
    {
        name: '练习',
        type: 'button',
        expand: false,
        subMenu: [
            { name: '题目一', type: 'link', url: '/money-convert' },
            { name: '题目二', type: 'link', url: '/mood' },
            { name: '题目三', type: 'link', url: '/stopwatch' },
            { name: '题目四', type: 'link', url: '/map' },
        ]
    },
];


export const MENUS2 = [
    { name: '新建', type: 'link', url: 'add-info' }
];
